using System;
using System.Linq;
using System.Collections.Generic;
namespace Bussiness
{   
	public partial class NHANVIENRepository
	{
		// Add your own data access methods.
		// This file should not get overridden
        public NHANVIEN Checklogin(string user, string pass)
        {
            try
            {
                XUAT_NHAPTONEntities context = (XUAT_NHAPTONEntities)Repository.UnitOfWork.Context;
                return context.NHANVIENs.First(dk => dk.USERNAME == user && dk.PASSWORD == pass);
            }
            catch
            {
                return null;
            }
        }
	}
}